<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>修改密码</title>
</head>

<body>
<div class="line">
<div class="x3"></div>
<div class="x6">
<c:if test="${!empty msg}">
	<div class="alert alert-green fadein-top"><span class="close rotate-hover"></span><strong>提示：</strong>${msg}</div>
</c:if>
<div class="panel admin-panel">
	<div class="panel-head"><strong>修改密码</strong></div>
	<div class="padding">
		<span><strong>温馨提醒：</strong>密码修改成功后需重新登录</span>
		<form id="form" method="post" action="<c:url value='/admin/member/savePassword' />" class="form">
			<div class="line">
				<div class="x12">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label>原密码</label>
							</div>
							<div class="field">
								<input type="password" class="input" id="oldPassword" name="oldPassword" value="${oldPassword}" 
								placeholder="请填写原密码" data-validate="required:必填"/>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x12">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label>新密码</label>
							</div>
							<div class="field">
								<input type="password" class="input" name="newPwd" value="${newPassword}" 
									placeholder="请填写新密码" data-validate="required:必填,length#>=5:密码长度至少5位" />
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x12">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label>重复新密码</label>
							</div>
							<div class="field">
								<input type="password" class="input" name="newPassword" value="${newPassword}" 
									placeholder="请重复填写新密码" data-validate="required:必填,repeat#newPwd:两次密码不一致" />
							</div>
						</div>
					</div>
				</div>
			</div>
			<br/>
			<div class="form-button">
				<button class="button bg-main" type="submit">确定修改</button>
			</div>
		</form>
	</div>
</div>
</div>
<div class="x3"></div>
</div>
</body>
</html>